* {
    margin: 0;
    padding: 0;
    list-style: none;
}

html,
body {
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

#bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0) url(./image/bg.jpg) no-repeat;
    background-size: cover;
}

#rain {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    /* z-index: -1000; */
    /* opacity: 0; */
}

#rain div {
    /* overflow: hidden; */
    position: absolute;
    width: 20px;
    /*height: 100%;*/
    /*background-color: blueviolet;*/
    transform: translate3d(00px, 0px, 00px);
    transition: .5s;
}

#rain>div>span {
    /*display: block;*/
    color: snow;
     display: none;
    /* position:absolute; */
    font-size: 20px;
    text-align: center;
    /*控制雨点尾巴拖的长度*/
    transition: 2s;
    /* opacity: 1; */
}


/* @keyframes anim {
    0%{
        color: rgba(167, 39, 39,1);
    background:linear-gradient(to right,rgba(167, 39, 39,0),rgba(167, 39, 39,1) 12.5%,rgba(167, 39, 39,0) 12.5%);
    }
    12.5%{
        background:linear-gradient(to right,rgba(167, 39, 39,0), rgba(167, 39, 39,0) 12.5%,rgba(167, 39, 39,1) 25%,rgba(167, 39, 39,0) 25%);
    }
    25%{
        background:linear-gradient(to right,rgba(167, 39, 39,0) 12.5%, rgba(167, 39, 39,0) 25%,rgba(167, 39, 39,1) 37.5%,rgba(167, 39, 39,0) 37.5%);
    }
    37.5%{
        background:linear-gradient(to right,rgba(167, 39, 39,0) 25%, rgba(167, 39, 39,0) 37.5%,rgba(167, 39, 39,1) 50%,rgba(167, 39, 39,0) 50%);
    }
} */